interface Minister {
  duty(): void
}

interface Soldier {
  duty(): void
}

class Hanxin extends Minister {
  soldier: Soldier[]
  constructor (soldier: Soldier []) {
    super()
    this.soldier = soldier
  }

  duty() {
    console.log('我是皇帝的大臣')
  }
}